write dict to json file with special characters

25

with open(filename, 'w', encoding='utf-8') as file:
    json.dump(data, file, ensure_ascii=False)

Comments

Submit
0 Comments